# Contributor: Andy Hawkins <andy@gently.org.uk>
# Maintainer: Andy Hawkins <andy@gently.org.uk>
pkgname=webhook
pkgver=2.8.0
pkgrel=6
pkgdesc="Lightweight configurable webhooks server"
url="https://github.com/adnanh/webhook"
license="MIT"
arch="all"
makedepends="go"
source="https://github.com/adnanh/webhook/archive/$pkgver/webhook-$pkgver.tar.gz 10-fix-test.patch"

export GOPATH="$srcdir"

build() {
	mkdir -p bin
	go build -o bin github.com/adnanh/webhook/...
}

check() {
	go test ./...
}

package() {
	install -Dm755 bin/webhook -t "$pkgdir"/usr/bin
}

sha512sums="98a9e941687c1e679abd5cbd314dad28cb42383e483202698d386d9123d63a3f8f40bb97f3da2c644dfc3f79a8e7d7a6d28b5069c39c9ca114e7e101424481ca  webhook-2.8.0.tar.gz
1bc6c1fe18aa16df092a283e8a00954a60c910d25c53d3900b2657cf49d6aae59686e20565f58a52e7846f6ea200caf292cf39c265c14d083270a32d3f37354c  10-fix-test.patch"
